#!/bin/bash

mans="man7"
for j in $mans; do
    for i in `ls $j`; do
        filesuf=${i##*.}
        filepre=${i%%.*}
        if [ "$filesuf" != "pod" ]; then
            continue
        fi
        cmd="pod2man $j/$i $j/$filepre.7"
        echo $cmd
        $cmd
    done
done
